package com.eight.clienthome.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.common.pojo.EduTeacher;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 向文豪
 * @program: eight-education-parent
 * @description:
 * @date 2023/6/5 10:36
 */
public interface EduTeacherDao extends BaseMapper<EduTeacher> {
    @Select("select et.* from edu_teacher et join tb_shoucang_teacher st on et.id = st.teacher_id join tb_member tm on st.member_id = tm.id\n" +
            " where tm.id =#{huiYuanId}")
    List<EduTeacher> findTeacher(String huiYuanId);
}
